package me.minecraft.mod.cobblemonbukkitevent.bukkit.event;

import com.cobblemon.mod.common.api.battles.model.PokemonBattle;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;

/**
 * @author langle__
 * @version 1.0
 */
public class BattleTurnUpdateEvent extends Event {

    private static final HandlerList HANDLERS = new HandlerList();

    private final PokemonBattle battle;
    private final int turn;

    public BattleTurnUpdateEvent(PokemonBattle battle, int turn) {
        this.battle = battle;
        this.turn = turn;
    }

    public PokemonBattle getBattle() {
        return battle;
    }

    public int getTurn() {
        return turn;
    }

    @Override
    public @NotNull HandlerList getHandlers() {
        return HANDLERS;
    }

    public static HandlerList getHandlerList() {
        return HANDLERS;
    }

}